#ifndef MY_LINEEDIT_H
#define MY_LINEEDIT_H

#include <QWidget>
#include <QLabel>
#include <QLineEdit>
#include <QHBoxLayout>
#include <QObject>
#include <QPalette>




class my_lineedit : public QWidget
{
    Q_OBJECT
public:
    QPalette palette;
    QLabel* label;
    QLabel* label1;
    QLineEdit* lineedit;
    QLineEdit* lineedit1;
    QHBoxLayout* hboxlayout;
    my_lineedit(char* name , QWidget* parent);
    my_lineedit(char* name , char* name1 , QWidget* parent);
    ~my_lineedit();
    void set_text(char* str);
    void clear_text(void);
    void set_text_red(void);
    void set_text_black(void);
    void set_red_text(char* str);
    void set_black_text(char* str);
signals:
    void set_text_signal(const QString & str);
    void clear_text_signal(void);
    void set_text_red_signal(void);
    void set_text_black_signal(void);

private slots:
    //void set_text_slot(char* str);
    void set_text_black_slot(void);
    void set_text_red_slot(void);

};

#endif // MY_LINEEDIT_H
